package edu.tapestry.iddb.client.pages;

import java.util.Random;

import org.apache.tapestry5.annotations.InjectPage;

/**
 * Start page of application tapestryClientIDDB.
 */
public class Index
{
	 private final Random random = new Random();

	  @InjectPage
	  private Guess guess;

	  Object onAction()
	  {
	    int target = random.nextInt(10) + 1;

	    return guess.initialize(target);
	  }

}
